<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>con_nodes</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab function</center>
    <div align="right">Last update : September 1995</div>
    <p>
      <b>con_nodes</b> -  set of nodes of a connected component</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>ns = con_nodes(i,g)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>i</b>
        </tt>: integer, number of the connected component</li>
      <li>
        <tt>
          <b>g</b>
        </tt>: graph list</li>
      <li>
        <tt>
          <b>ns</b>
        </tt>: row vector, node numbers of the connected component</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      <tt>
        <b>con_nodes</b>
      </tt> returns the row vector <tt>
        <b>ns</b>
      </tt> of the numbers of the
    nodes which belong to the connected component number <tt>
        <b>i</b>
      </tt>.
    If <tt>
        <b>i</b>
      </tt> is not the number of a connected component, the empty vector
    <tt>
        <b>[]</b>
      </tt> is returned.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

ta=[1 1 2 2 2 3 4 4 5 7 7 9 10 12 12 13 13 14 15];
he=[2 6 3 4 5 1 3 5 1 8 9 8 11 10 11 11 15 13 14];
g=make_graph('foo',1,15,ta,he);
g('node_x')=[197 191 106 194 296 305 305 418 422 432 552 550 549 416 548];
g('node_y')=[76 181 276 278 276 83 174 281 177 86 175 90 290 397 399];
show_graph(g);
con_nodes(2,g)
x_message('Displaying the nodes of component #2');
n=g('node_number');
nodecolor=0*ones(1,n);
nodecolor(1,con_nodes(2,g))=11*ones(con_nodes(2,g));
g('node_color')=nodecolor;
nodediam=20.*ones(1,n);
nodediam(1,con_nodes(2,g))=30*ones(con_nodes(2,g));
g('node_diam')=nodediam;
show_graph(g);
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="connex.htm">
        <tt>
          <b>connex</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="is_connex.htm">
        <tt>
          <b>is_connex</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="strong_connex.htm">
        <tt>
          <b>strong_connex</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="strong_con_nodes.htm">
        <tt>
          <b>strong_con_nodes</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
